home *** CD-ROM | disk | FTP | other *** search
- unit BobSpDlg;
- interface
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, Buttons, ExtCtrls;
-
- type
- TAction = (None, Ignore, IgnoreAll, Replace, ReplaceAll, Add);
-
- type
- TFormBobSpell = class(TForm)
- GroupBox1: TGroupBox;
- Label1: TLabel;
- EditFrom: TEdit;
- EditTo: TEdit;
- ListBoxSuggestions: TListBox;
- ButtonIgnore: TButton;
- ButtonReplace: TButton;
- ButtonAddWord: TButton;
- ButtonIgnoreAll: TButton;
- ButtonReplaceAll: TButton;
- BitBtnCancel: TBitBtn;
- Image1: TImage;
- procedure ListBoxSuggestionsClick(Sender: TObject);
- procedure ButtonClick(Sender: TObject);
- public
- Action: TAction; { default = None }
- end;
-
- var
- FormBobSpell: TFormBobSpell;
-
- implementation
- {$R *.DFM}
-
- procedure TFormBobSpell.ListBoxSuggestionsClick(Sender: TObject);
- begin
- with ListBoxSuggestions do EditTo.Text := Items[ItemIndex]
- end;
-
- procedure TFormBobSpell.ButtonClick(Sender: TObject);
- begin
- Action := TAction((Sender AS TButton).Tag);
- ModalResult := mrOk
- end;
-
- end.
-